home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16502 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: news.his.com!news
  2. From: Tom Daniels <tdaniels@his.com>
  3. Newsgroups: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
  4. Subject: Re: Young programmers read me.
  5. Date: Wed, 10 Apr 1996 22:45:02 -0400
  6. Organization: Very Little, If Any
  7. Message-ID: <316C722E.528A@his.com>
  8. References: <4icpp9$7hr@barad-dur.nas.com> <4imqe4$cj3@ping1.ping.be> <1996Mar23.224853.116513@kuhub.cc.ukans.edu> <4j52hn$ikb@news.ios.com> <Pine.OSF.3.91.960403112207.17337H-100000@bud.cc.swin.edu.au> <aidan-0404961557290001@meathook.intac.com> <pnoguchi-0404962135210001@pnoguchi.his.com> <aidan-0604961847480001@meathook.intac.com> <316a2987.3677177@news.cyberport.com>
  9. NNTP-Posting-Host: tdaniels.his.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win95; I)
  14.  
  15. Warren Young Wrote:
  16. > Again, this is a philosophical distinction.  C/C++'s function pointers
  17. > are low-level, true hardware pointers, not abstracted handles or some
  18. > such.  Could you, for example, assign a raw address to the Oberon
  19. > sample?  You can in C/C++, because they're directly analogous to the
  20. > underlying machine structures.
  21.  
  22. My question is this:  If you are writing non system type programs
  23. (I include games in this category), why in the world would you
  24. ever resort to such a hack as to assign a raw address to a function
  25. pointer.  It's that sort of crap (that is easy to do even by 
  26. accident) that C is infamous for.  As a program manager heading a
  27. project, I would shoot at dawn, the first programmer who pulled this
  28. kind of crap.  If you gotta do that stuff, you've misdesigned
  29. your program structure somewhere.
  30.  
  31. Then again, if you're writing a system kernel or something like that
  32. it doesn't matter quite so much, but still it leaves a terrible 
  33. taste in my mouth.
  34.